package com.xx.eshop.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xx.eshop.dao.ProductAttrValueDao;
import com.xx.eshop.entity.ProductAttrValue;
import com.xx.eshop.service.ProductAttrValueService;

@Service
public class ProductAttrValueServiceImpl implements ProductAttrValueService{
	
	@Autowired
	private ProductAttrValueDao productAttrValueDao;
	
	@Override
	public void save(ProductAttrValue pav) {
		productAttrValueDao.save(pav);
		
	}

	@Override
	public void update(ProductAttrValue pav) {
		productAttrValueDao.update(pav);
	}

	@Override
	public void delete(int product_id) {
		productAttrValueDao.delete(product_id);
		
	}

	@Override
	public List<ProductAttrValue> findByProductId(int product_id) {
		return productAttrValueDao.findByProductId(product_id);
	}
	
}
